#include<stdio.h>

int fun(long int s,long int *t)
{
	int d;
	long int sl=1;
	*t=0;
	while(s>0)
	{
		d=s%10;
		if(d%2==0)
		{
			*t=d*sl+*t;
			sl*=10;
		}
		s/=10;
	}
}

int main()
{
	long int s,t;
	printf("\nPlease enter s:");
	scanf("%ld",&s);
	fun(s,&t);
	printf("The result is:%ld\n",t);
}
